package com.everflourish.yeah100.entity.marking;

import com.everflourish.yeah100.utils.constant.PaperType;

import java.io.Serializable;

/**
 * 学生答案
 *
 * @author pf
 * @date 2015-4-27
 */
public class StudentAnswer implements Serializable {

    private static final long serialVersionUID = 1L;
    // 客观题的答案
    private String objectAnswers;
    // 主观题的答案
    private String subjectAnswers;
    // 创建时间
    private String effectDate;
    // 试卷类型
    private String paperType = PaperType.NONE.text;
    // 分数
    private Float scores;
    // 客观题分数
    private Float objectScores;
    // 主观题分数
    private Float subjectScores;
    // 客观题题号
    private Integer objectSerialNumber;
    // 主观题题号
    private Integer subjectSerialNumber;

    public StudentAnswer() {
        this.objectAnswers = "";
        this.subjectAnswers = "";
        this.paperType = PaperType.NONE.text;
        this.scores = 0f;
        this.objectScores = 0f;
        this.subjectScores = 0f;
    }

    public String getObjectAnswers() {
        return objectAnswers;
    }

    public void setObjectAnswers(String objectAnswers) {
        this.objectAnswers = objectAnswers;
    }

    public String getSubjectAnswers() {
        if (subjectAnswers == null || subjectAnswers.equalsIgnoreCase("null")) {
            subjectAnswers = "";
        }
        return subjectAnswers;
    }

    public void setSubjectAnswers(String subjectAnswers) {
        this.subjectAnswers = subjectAnswers;
    }

    public String getEffectDate() {
        return effectDate;
    }

    public void setEffectDate(String effectDate) {
        this.effectDate = effectDate;
    }

    public String getPaperType() {
        return paperType;
    }

    public void setPaperType(String paperType) {
        this.paperType = paperType;
    }

    public Float getScores() {
        return scores;
    }

    public void setScores(Float scores) {
        this.scores = scores;
    }

    public Float getObjectScores() {
        return objectScores;
    }

    public void setObjectScores(Float objectScores) {
        this.objectScores = objectScores;
    }

    public Float getSubjectScores() {
        return subjectScores;
    }

    public void setSubjectScores(Float subjectScores) {
        this.subjectScores = subjectScores;
    }

    public Integer getObjectSerialNumber() {
        return objectSerialNumber;
    }

    public void setObjectSerialNumber(Integer objectSerialNumber) {
        this.objectSerialNumber = objectSerialNumber;
    }

    public Integer getSubjectSerialNumber() {
        return subjectSerialNumber;
    }

    public void setSubjectSerialNumber(Integer subjectSerialNumber) {
        this.subjectSerialNumber = subjectSerialNumber;
    }
}
